<?php
//登录接口
class LoginAction extends AuthbaseAction {
	public $d  ;
	public function __construct()
	{
		parent::__construct();
		$this->d = D("Api/Member");
	}
    public function index(){
    	$params = array(
    		'username'=>trim($this->_request("username")),
    		'passwd'=>trim($this->_request("passwd")),
    	);
    	$res = $this->d->login($params);
    	exit(json_encode($res));
    }
}